package cn.pugle.oj.leetcode;

import cn.pugle.oj.catalog.BitProblem;

/**
 * @author tzp
 * @since 2020/11/11
 */
public class LC461_1 implements BitProblem {
    public int hammingDistance(int x, int y) {
        return Integer.bitCount(x ^ y);
    }

    public static void main(String[] args) {
        System.out.println(new LC461_1().hammingDistance(14, 4));
    }
}
